package com.aivin.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

/**
 * Created by Administrator on 2016/9/6.
 */
public class MyStringUtils {

    public  static String getCurrentTimeStr(){

        Date date2=new Date();
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy:MM:dd"); //常用的日期格式
        String dateString=sdf.format(date2); //日期类型--->String
        return  dateString ;
    }

    /*  [startNum,endNum]  ok*/
    public  static  int getRadomInt(int startNum, int endNum) {
        return new Random().nextInt(endNum - startNum + 1) + startNum;
    }



}
